package com.xms.sdk.service;

import com.xms.core.data.Entity;
import com.xms.core.exception.XmsException;

import java.sql.SQLException;
import java.util.List;
import java.util.UUID;

/**
 * <p>
 * IDataDeleter
 * </p>
 *
 * @author migo
 * @since 2021/9/6
 */
public interface IDataDeleter {
    boolean delete(Entity record, boolean ignorePermissions) throws XmsException, SQLException;

    boolean delete(String name, UUID id, boolean ignorePermissions) throws Exception;

    boolean delete(String name, List<UUID> ids, boolean ignorePermissions) throws Exception;

    boolean delete(Entity record) throws XmsException, SQLException;

    boolean delete(String name, UUID id) throws Exception;

    boolean delete(String name, List<UUID> ids) throws Exception;
}
